﻿<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="magv">
					<?php echo JText::_( 'Mã giáo viên' );?>
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="magv" id="magv" size="32" maxlength="250" value="<?php echo $this->giaovien->magv;?>" />
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="tengv">
					<?php echo JText::_( 'Tên giáo viên' );?>
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="tengv" id="tengv" size="32" maxlength="250" value="<?php echo $this->giaovien->tengv;?>" />
			</td>
		</tr>

		<tr>
			<td width="100" align="right" class="key">
				<label for="manganh">
					<?php echo JText::_( 'Mã ngành' );?>
				</label>
			</td>
			<td>
					<?php
					echo $this->lists['type'];
					?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="khoa">
					<?php echo JText::_( 'Chuyên ngành' );?>
				</label>
			</td>
			<td>
				<select name="tenphannganh" id="tenphannganh">
					<?php
					foreach( $this->phannganh as $obj )
					{ 					
							if($obj->tenphannganh==$this->detai->tenphannganh)
								echo "<option value='".$obj->tenphannganh."' selected='selected'>".$obj->tenphannganh."</option>";
							else
								echo "<option value='".$obj->tenphannganh."' >".$obj->tenphannganh."</option>";
					}		
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="email">
					<?php echo JText::_( 'Email' );?>
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="email" id="email" size="32" maxlength="250" value="<?php echo $this->giaovien->email;?>" />
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="sodienthoai">
					<?php echo JText::_( 'Số điện thoại' );?>
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="sodienthoai" id="sodienthoai" size="32" maxlength="250" value="<?php echo $this->giaovien->sodienthoai;?>" />
			</td>
		</tr>
	</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_giaovien" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="text" value="<?php echo $this->text; ?>" />
<input type="hidden" name="controller" value="giaovien" />
<input type="hidden" name="view" value="manage" />
</form>
